package org.zjt.demo.model;

import lombok.*;

import java.util.concurrent.atomic.AtomicInteger;

@Data
@NoArgsConstructor								 //无参数构造函数
@AllArgsConstructor(access = AccessLevel.PUBLIC) //全参数构造函数 public型构造函数
@RequiredArgsConstructor   						//将nonnull函数设置到构造函数
public class Trade {  

	@NonNull
	private String id;//ID

	private String name;
	private double price;//金额  
	private AtomicInteger count = new AtomicInteger(0);

}  